﻿<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/MasterPages/ModlingMasterPage.master"
    AutoEventWireup="true" CodeBehind="ChangePasswordView.aspx.cs" Inherits="RMS.Account.ChangePassword" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="PagContent">
    <cc:Notification runat="server" ID="Notification" DefaultText="password changed sussefuly" />
    <table class="Details" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2" class="header">
                Change Password
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label1" runat="server" Text="Old Password"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtOldPassword" runat="server" TextMode="Password" MaxLength="20"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Old password is Required Field"
                    ValidationGroup="ChangPass" ControlToValidate="txtOldPassword" Display="Dynamic"
                    SetFocusOnError="True">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label2" runat="server" Text="New Password"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password" MaxLength="20"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="New password is Required Field"
                    ValidationGroup="ChangPass" Display="Dynamic" SetFocusOnError="True" ControlToValidate="txtNewPassword">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label3" runat="server" Text="Re. New Password"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtRNewPassword" runat="server" TextMode="Password" MaxLength="20"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Re new password  is not mathed"
                    ControlToCompare="txtNewPassword" ControlToValidate="txtRNewPassword" Display="Dynamic"
                    ValidationGroup="ChangPass" SetFocusOnError="True">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <center>
                    <table width="100%">
                        <tr>
                            <td>
                                <asp:Button ID="btnChangePassword" ValidationGroup="ChangPass" runat="server" Text="Change Password"
                                    OnClick="btnChangePassword_Click" />
                            </td>
                            <td>
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                            </td>
                        </tr>
                    </table>
                </center>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="footer">
                <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="ChangPass" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
